﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ball : MonoBehaviour
{
    void Update()
    {
        Moto();
        Unfind();
    }
    protected virtual void Moto() { 
    this.transform.Translate(-30* Time.deltaTime, 0, 0, Space.World);
    }
    private void Unfind()
    {
        if (transform.position.x <= -12)
        {
            //fashe.ballC--;
            Destroy(this.gameObject);
        }
    }
}